mruby 4.0.0
mruby is the lightweight implementation of the Ruby language
Loading...
Searching...
No Matches
common.h File Reference

More...

#include <sys/types.h>
Include dependency graph for common.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Macros

#define MRB_BEGIN_DECL
 Start declarations in C mode.
#define MRB_END_DECL
 End declarations in C mode.
#define mrb_noreturn
 Shared compiler macros.
#define mrb_deprecated
 Mark a function as deprecated.
#define mrb_likely(x)
 Branch prediction hints for optimization.
#define mrb_unlikely(x)
#define mrb_alignas(n)
 Declare a type or object as an alignment requirement.
#define MRB_INLINE   static inline
 Declare a function as always inlined.
#define MRB_API   extern
 Declare a public mruby API function.

Detailed Description

  • mruby common platform definition"

See Copyright Notice in mruby.h

Macro Definition Documentation

◆ mrb_likely

#define mrb_likely ( x)
Value:
(x)

Branch prediction hints for optimization.

◆ mrb_noreturn

#define mrb_noreturn

Shared compiler macros.

Declare a function that never returns.

◆ mrb_unlikely

#define mrb_unlikely ( x)
Value:
(x)